package com.RLFZ.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.RLFZ.entity.LineTrend;
import com.RLFZ.entity.NocvData;
import com.RLFZ.mapper.IndexMapper;
import com.RLFZ.service.IndexService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务接口实现
 *
 * @author zh
 * @since 2022-08-25 17:16:58
 * @description
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class IndexServiceImpl  extends ServiceImpl<IndexMapper, NocvData> implements IndexService {

    @Autowired
    private IndexMapper indexMapper;
    @Override
    public List<LineTrend> findSevenData() {
        List<LineTrend> list=indexMapper.findSevenData();
        return list;
    }

    @Override
    public List<NocvData> listOrderByIDLimit34() {
        return indexMapper.listOrderByIDLimit34();
    }

    @Override
    public void savve(NocvData nocvData) {
        indexMapper.savve(nocvData);
    }

    @Override
    public Integer max() {
        return indexMapper.max();
    }


}
